package cn.blackhole.simple.domain.retry.service.impl;

import cn.blackhole.simple.domain.retry.service.RetryPolicy;

public class NoRetryPolicy implements RetryPolicy {

    @Override
    public int maxAttempts() {
        return 0;
    }

    @Override
    public long delayMillis(int attempt) {
        return 0;
    }

    @Override
    public boolean shouldRetry(Throwable... exception) {
        // 默认不重试策略
        return false;
    }
}